package com.green.card;

import android.content.ClipboardManager;
import android.content.Context;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.ScaleAnimation;
import android.widget.Toast;

import com.green.card.base.BaseActivity;
import com.leona.splashlibrary.view.Title;

/**
 * Description:
 * Data：2018/12/28 0028-13:35
 * Author: xjlei
 */
public class ReturnCashActivity extends BaseActivity {

    @Override
    public void initView() {
        setContentView(R.layout.activity_return_cash);

        findViewById(R.id.weichat_copy).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                copyQQNumber();
            }
        });

        Title title = (Title) findViewById(com.leona.splashlibrary.R.id.title);
        title.setTitle("56卡汇返利");
        title.setLeftButton(com.leona.splashlibrary.R.mipmap.icon_back, new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }

    @Override
    protected void setListener() {

    }

    @Override
    public void initData() {

    }

    /**
     * 复制QQ群号: 2337125469
     */
    private void copyQQNumber(){
        ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
        // 将文本内容放到系统剪贴板里。
        cm.setText("2337125469");
        Toast.makeText(this, "已复制", Toast.LENGTH_SHORT).show();
    }
}
